<?php
/**
 * Created by PhpStorm.
 * User: Mac
 * Date: 2019-01-20
 * Time: 16:35
 */
namespace app\Common\lib;
class Redis{
    /**
     * @var 验证码前缀
     */
    public static $pre='sms_';
    /**
     * @var 用户前缀
     */
    public static $pre_user='user_';

    public static function smsKey($phone){
        return self::$pre.$phone;
    }
    public static function userKey($phone){
        return self::$pre_user.$phone;
    }
}